package br.com.MasterReplace.view;

import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JButton;

import javax.swing.WindowConstants;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Sobre extends javax.swing.JPanel {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JButton fecharButton;
	private JScrollPane licenceTexto;
	private JLabel labelSiteLink;
	private JLabel labelAutorLink;
	private JLabel labelSite;
	private JLabel labelAutor;
	private JLabel labelTitulo;

	/**
	* Auto-generated main method to display this 
	* JPanel inside a new JFrame.
	*/
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.getContentPane().add(new Sobre());
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}
	
	public Sobre() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			this.setPreferredSize(new java.awt.Dimension(342, 392));
			this.setLayout(null);
			this.setForeground(new java.awt.Color(192,192,192));
			{
				fecharButton = new JButton();
				this.add(fecharButton);
				fecharButton.setText("Fechar");
				fecharButton.setBounds(148, 359, 47, 21);
			}
			{
				labelTitulo = new JLabel();
				this.add(labelTitulo);
				labelTitulo.setText("MasterReplace 1.4");
				labelTitulo.setBounds(12, 75, 111, 14);
				labelTitulo.setFont(new java.awt.Font("Tahoma",1,11));
			}
			{
				labelAutor = new JLabel();
				this.add(labelAutor);
				labelAutor.setText("Autor:");
				labelAutor.setBounds(12, 101, 31, 14);
			}
			{
				labelSite = new JLabel();
				this.add(labelSite);
				labelSite.setText("Web Site:");
				labelSite.setBounds(12, 121, 47, 14);
			}
			{
				labelAutorLink = new JLabel();
				this.add(labelAutorLink);
				labelAutorLink.setText("<html><a href='http://codeerror.wordpress.com'>Reinaldo Elias</a></html>");
				labelAutorLink.setBounds(77, 101, 65, 14);
			}
			{
				labelSiteLink = new JLabel();
				this.add(labelSiteLink);
				labelSiteLink.setText("http://xxx.xxx.xxx");
				labelSiteLink.setBounds(77, 121, 94, 14);
			}
			{
				licenceTexto = new JScrollPane();
				this.add(licenceTexto);
				licenceTexto.setBorder(BorderFactory.createTitledBorder(new LineBorder(new java.awt.Color(0,0,0),2,true),"GNU General Public Licence",TitledBorder.CENTER,TitledBorder.TOP,new java.awt.Font("Tahoma",0,11),new java.awt.Color(0,0,0)));
				licenceTexto.setBounds(12, 155, 318, 192);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
